<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .fu{
            background-color: #bbf369;
             display: flex;/*表示该父元素是弹性布局 */
            justify-content:  center;/*表示子元素居中*/
            justify-content:flex-end;/*表示子元素居右*/
            justify-content:flex-start; /*表示子元素居左*/
            justify-content:space-between; /*表示子元素首尾贴边，剩余空间均分*/
            justify-content:space-around;/*子元素距离相等（视作环形）*/
            justify-content:space-evenly;/*子元素距离相等（平分）*/

            height: 700px;
            align-items: center;/*表示子元素居中*/
            align-items: flex-end;/*表示子元素居下*/
            align-items: flex-start;/*表示子元素居上*/
            align-items: center;


        }
        .zi{
            width: 100px;
            height: 100px;
            background-color: #eb6262;
            border: 3px solid red;
        }
    </style>
</head>
<body>
<div class="fu">
    <div class="zi">1</div>
    <div class="zi">2</div>
    <div class="zi">3</div>
    <div class="zi">4</div>
    <div class="zi">5</div>
    <div class="zi">6</div>
    <div class="zi">7</div>
</div>
</body>
</html>